//
//  RGCommentToolBarView.h
//  RedGrass
//
//  Created by wukong on 2018/12/24.
//  Copyright © 2018年 hongcaosp. All rights reserved.
//

#import <UIKit/UIKit.h>

@class RGCommentToolBarView;

@protocol RGCommentToolBarViewDelegate <NSObject>

@required
-(void)onSendText:(NSString *)text WithView:(RGCommentToolBarView *)view;



@end

NS_ASSUME_NONNULL_BEGIN

@interface RGCommentToolBarView : UIView

@property (nonatomic, strong) UIView                           *container;
@property (nonatomic, strong) UITextView                       *textView;
@property (nonatomic, weak) id<RGCommentToolBarViewDelegate> delegate;
@property (nonatomic, assign) BOOL isShowBackGround;//显示半透明背景
@property (nonatomic, assign, readonly) BOOL isShow;
@property (nonatomic, assign) NSInteger currentIndex;//当前视频的index
@property (nonatomic, copy) void (^toolBarTextViewTouchedBlock)();


- (void)show;
- (void)dismiss;

@end

NS_ASSUME_NONNULL_END
